<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>上传采购单凭证</title>
<script type="text/javascript" src="index.php?act=jslang"></script>
<script language="javascript" type="text/javascript"
	src="{res file=js/jquery-1.2.6.js}"></script>
<script language="javascript" type="text/javascript"
	src="{res file=js/common.js}"></script>
<script language="javascript" type="text/javascript"
	src="{lib file=ajaxfileupload.js}"></script>
<script language="javascript" type="text/javascript"
	src="{res file=js/jquery.funkyUI.js}"></script>
<script language="JavaScript" type="text/javascript"
	src="{res file=js/lan.js}"></script>
<link href="template/style/css/style.css" type="text/css"
	rel="stylesheet" />
<style>
label.error {
	color: red;
}
</style>
<body>
	<div class="sub-body">
		<div class="tab-frame" style="width: 900px;">
			<div class="tab-title-1">
				<span>上传凭证</span>
			</div>
			<form id="sourcing_form" method="post" enctype="multipart/form-data">
				<table width="100%" cellspacing="0" cellpadding="0" align="left"
					class="tab-display">
					<tbody>
						<tr>
							<th align="center" width="12%">上传凭证</th>
							<td align="left">
								<!-- {if $smarty.get.act eq "upload_bulk_invoices"} -->
									<!-- {if $user.role==USER_SOURCING && $sample.bulk_status==BULK_STATUS_FINANCE_APPROVE && !$sample.if_print} -->
									<input type="button" class="btn-3" value="{$lang.upload_enclosure}" onClick="upload_docs({$belongs_sour_invoice},{$fabric_info.fabric_info_id});" />&nbsp;&nbsp;
									<!-- {/if} -->
								<!-- {else} -->
									<!-- {if $user.role==USER_SOURCING && ($sample.sourcing_status==SOURCING_STATUS_CREATE || $sample.sourcing_status==SOURCING_STATUS_SOUR_SUBMIT) && !$sample.if_print} -->
									<input type="button" class="btn-3" value="{$lang.upload_enclosure}" onClick="upload_docs({$belongs_sour_invoice},{$fabric_info.fabric_info_id});" />&nbsp;&nbsp;
									<!-- {/if} -->
								<!-- {/if} -->
							</td>
						</tr>
						<tr>
							<td align="left" colspan="2" id="sample_sourcing">
								<!--{foreach from=$sample.sample_sour_upload item=file}-->
									<span><a href="{$file.file_path}" target="_blank"><img src="{$file.file_path}" title="{$file.file_name}" width="400px" height="300px"></img></a>
									<!-- {if $smarty.get.act eq 'upload_bulk_invoices'} -->
										<!-- {if $user.role==USER_SOURCING && ($sample.bulk_status==BULK_STATUS_FINANCE_APPROVE)  && !$sample.if_print} -->
										<a class="pic_del" href="{url app=comupload&act=delete&id=$file.file_id}" onClick="return confirm('{$lang.confirm_del_file}')" title="{$lang.delete}">&nbsp;</a>
										<!-- {/if} -->
									<!-- {else} -->
										<!-- {if $user.role==USER_SOURCING && ($sample.sourcing_status==SOURCING_STATUS_CREATE || $sample.sourcing_status==SOURCING_STATUS_SOUR_SUBMIT)  && !$sample.if_print} -->
										<a class="pic_del" href="{url app=comupload&act=delete&id=$file.file_id}" onClick="return confirm('{$lang.confirm_del_file}')" title="{$lang.delete}">&nbsp;</a>
										<!-- {/if} -->
									<!-- {/if} -->
									<!--{if !$smarty.foreach.last}--></span><!--{/if}-->
							    <!--{/foreach}-->
							</td>
						</tr>
						<tr>
							<td colspan="6">
								<input type="button" value="返 回" id="submit" class="btn-2" onclick="history.back();"/>
							</td>
						</tr>
					</tbody>
				</table>
			</form>
		</div>
	</div>
	<div id="remsg"></div>
</body>
</html>